package cn.com.yang.server.tomcat;

import java.util.concurrent.ThreadPoolExecutor;

import org.apache.catalina.LifecycleException;
import org.apache.catalina.startup.Tomcat;

/**
 * 自定义toncat服务
 * TODO
 * @author yangyijin
 * @since 2024年1月15日-下午9:09:23
 */
public class Tomcat9Server {
	public static void main(String[] args) {
		ThreadPoolExecutor executor = new ThreadPoolExecutor(10, 100, 60000, null, null);
		Tomcat tomcat =new Tomcat();
		tomcat.setPort(8888);
		try {
			tomcat.start();
		} catch (LifecycleException e) {
			e.printStackTrace();
		}
	}
}
